package com.practice.springboot.springbootMybatis.mapper;

import com.practice.springboot.springbootMybatis.model.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author sai
 * @create 2020-08-23 3:23
 */
@Mapper
public interface BookMapper {

    int addBook(Book book) ;

    int deleteBook(long id) ;

    int updateBook(Book book) ;

    Book getBookById(long id) ;

    List<Book> getAllBooks( ) ;

}
